package com.hq.mes.bussiness.customer.domain;
import com.alibaba.fastjson.annotation.JSONField;
import com.hq.mes.bussiness.BussinessBaseEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import me.zhengjie.base.BaseEntity;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import java.io.Serializable;
import java.util.Objects;
import java.util.Set;

/**
* @author wsq
* @date 2021-12-16
*/
@Entity
@Getter
@Setter
@Table(name = "hq_customer")
@SQLDelete(sql = "update hq_customer set is_del = 'true' where id = ?")
@Where(clause = " is_del <> 'true' or is_del is null ")
@org.hibernate.annotations.Table(appliesTo = "hq_customer",comment="客户表")
public class Customer extends BussinessBaseEntity {


    @Column(columnDefinition = "varchar(255) COMMENT '地址'")
    private String 	address;
    
    @Column(columnDefinition = "varchar(63) COMMENT '电话'")
    private String 	tel;
    
    @Column(columnDefinition = "varchar(63) COMMENT '联系人'")
    private String 	contact;
    
    @Column(columnDefinition = "varchar(63) COMMENT '对公账号'")
    private String 	companyAccount;

}